package com.zhuna.www.po;

import com.zhuna.www.constant.UserRole;

import java.sql.Timestamp;
import java.time.LocalDateTime;

public class User {
    private int id;
    private String name;
    private String password;
    private UserRole role;
    private double wallet_balance;
    private Timestamp created_at;

    public User() {
    }

    public User(int id, String name, String password, UserRole role, double wallet_balance) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.role = role;
        this.wallet_balance = wallet_balance;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public UserRole getRole() {
        return role;
    }

    public void setRole(UserRole role) {
        this.role = role;
    }

    public double getWallet_balance() {
        return wallet_balance;
    }

    public void setWallet_balance(double wallet_balance) {
        this.wallet_balance = wallet_balance;
    }

    public Timestamp getCreated_at() {
        return created_at;
    }

    public void setCreated_at(Timestamp created_at) {
        this.created_at = created_at;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", id=" + id +
                ", role=" + role +
                ", wallet_balance=" + wallet_balance +
                ", created_at=" + created_at +
                '}';
    }
}
